package com.wunu.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.wunu.entity.Lock;
import com.wunu.service.*;
import com.wunu.mapper.LockMapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * <p>
 **服务实现类
 * </p>
 *
 * @author wunu kin
 * @since 2019-03-25
 */
@Service
public class LockServiceImpl extends ServiceImpl<LockMapper, Lock> implements ILockService {
    @Autowired
    private LockMapper lockMapper;
    @Override
    public Page<Lock> selectLocksByUserNoPage(Page<Lock> lockPage, String name, String userNo) {
        //注意！！ 分页 total 是经过插件自动 回写 到传入 page 对象
        return lockPage.setRecords(lockMapper.selectLocksByUserNoPage(lockPage,name ,userNo));
    }
   
}
